package levelUp;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: Станислав
 * Date: 29.12.13
 * Time: 21:06
 * To change this template use File | Settings | File Templates.
 */
public class VvodList extends RecordInFile{
    public static String value;
   public static void main(String [] args){
       LinkedList<String> myList = new LinkedList<String>();
       Scanner sc = new Scanner(System.in);

       while (true) {
           value = sc.nextLine();
           if (value.equals("stop"))  {
               break;
           }else {
               myList.add(value);
           }

       }
       Iterator<String> myIter = myList.iterator();
       while (myIter.hasNext()){
           String next = myIter.next();
           System.out.println(next);
       }

   }


}
